<template>
  <div>
    <router-view
      @getlink1="getlink1"
      :link1="link1"
      @getaidname="getaidname"
      :aidname="aidname"
      @getalisid="getalisid"
      :alisid="alisid"
      @getpaymentlist="getpaymentlist"
      :paymentlist="paymentlist"
      @getlistid="getlistid"
      :listid="listid"
   
    />
  </div>
</template>
<script>
export default {
  data() {
    return {
      link1: "", //所需的aid1
      aidname: "", //所需的aid名称
      alisid: "", //详细页面需要的id
      paymentlist: "", //支付数组
      listid:'',
 
    };
  },
  methods: {
    //所需的aid1
    getlink1(link) {
      this.link1 = link;
      this.link1 = this.link1.split("?")[0].split("/");
      this.link1 = this.link1[this.link1.length - 1];
      this.link1 = parseInt(this.link1);
    },
  //商品列表id
    getlistid(id){
      this.listid=id
    },
    //获取所需要的类别名称
    getaidname(name) {
      this.aidname = name;
    },
    //获取商品详细内容id
    getalisid(id) {
      this.alisid = id;
    },
    //获取支付内容
    getpaymentlist(list) {
      this.paymentlist = list;
    },
  
  },
};
</script>
<style  scoped>
</style>
